package sctu.edu.java.year2016.team06.yuweimei.day20160603.chapter11_1;

/**
 * Created by asus on 2016/6/4.
 */
public class Student {

    public void speak(int m) throws MyException {
        if (m > 1000) {
            MyException exception = new MyException(m);
            throw exception;
        }
        System.out.println("一个人可以说" + m + "个词在3分钟内");

    }
}



